#ifndef _SG_AUDIO_DEC_H
#define _SG_AUDIO_DEC_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined(_USRDLL)
#  if defined (_MSC_VER)
#    ifdef SOGOU_AUDIO_DEC_LIB_EXPORTS
#      define __SOGOU_API__ __declspec(dllexport)
#    else
#      define __SOGOU_API__ __declspec(dllimport)
#    endif
#  else
#    define __SOGOU_API__ __attribute__ ((__visibility__("default")))
#  endif
#else
#define __SOGOU_API__
#endif

    typedef struct _sg_audio_dec_ins {
        int unused;
    } sg_audio_dec_ins;

    __SOGOU_API__ sg_audio_dec_ins* sg_audio_create();
    __SOGOU_API__ void sg_audio_release(sg_audio_dec_ins* dec);
    __SOGOU_API__ int sg_audio_decode(sg_audio_dec_ins* dec, char* indata, char* outdata, int inlen, int* outlen);
    __SOGOU_API__ void sg_audio_reset(sg_audio_dec_ins* dec);

#ifdef __cplusplus
}
#endif

#endif //_SG_AUDIO_DEC_H
